#include <stdio.h>
#include <string.h>
#include <stdlib.h> /*exit()*/
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h> /*to get return code from server*/
#include <unistd.h> /*will allow my to execute another process*/
#include <time.h> /*difftime, */

int main()
{
clock_t start,end;
double timeelapsed;
time_t t1,t2;

// clock();
start = clock();
t1 = time(NULL);
printf("%ld %ld\n",start,t1);
sleep(2);
end = clock();
t2=time(NULL);
printf("%ld %ld\n",end,t2);
timeelapsed = ((double)(end-start))/CLK_TCK;///CLOCKS_PER_SEC;

printf("%f",timeelapsed);
}
